package com.snu.liwei.lyl_api.swagger.controller;

import com.snu.liwei.lyl_api.entity.Gene;
import com.snu.liwei.lyl_api.entity.Pattern;
import com.snu.liwei.lyl_api.entity.User;
import com.snu.liwei.lyl_api.entity.Video;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HiController {

    //只要我们的接口中，返回值中存在实体类，他就会被扫描到Swagger中
    @PostMapping(value="/gene")
    public Gene gene(){
        return new Gene();
    }
    @PostMapping(value="/pattern")
    public Pattern pattern(){
        return new Pattern();
    }
    @PostMapping(value="/user")
    public User user(){
        return new User();
    }
    @PostMapping(value="/video")
    public Video video(){
        return new Video();
    }


}
